import request from "@/api/request";
import type { AxiosResponse } from "axios";

// get list
export type GetListParams = {
  page: number,
  page_size: number,
  start_time: number,
  end_time: number,
  status: number | string,
  channel: number | string,
  method_to_addr: string,
  query_user_id: string,
  country: string,
  trade_id: string,
}
export function getList(params: GetListParams): Promise<AxiosResponse> {
  return request('withdraw/withdraw_records', params, 'post')
}


// opt
export type SubmitParams = {
  wd_status: number,
  wd_list_str: string,
  reason?: string
}
export function submit(params: SubmitParams):Promise<AxiosResponse>{
  return request('withdraw/withdraw_review', params, 'post')
}